/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="EVENTOSMEDICOS")
public class EventosMedicosProteu implements Serializable{

    @Id
    @Column(name="EVE_ST_CODIGO")
    private String eveStCodigo;
    @Id
    @Column(name="MED_ST_CODIGO")
    private String medStCodigo;

    public String getEveStCodigo() {
        return eveStCodigo;
    }

    public void setEveStCodigo(String eveStCodigo) {
        this.eveStCodigo = eveStCodigo;
    }

    public String getMedStCodigo() {
        return medStCodigo;
    }

    public void setMedStCodigo(String medStCodigo) {
        this.medStCodigo = medStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EventosMedicosProteu other = (EventosMedicosProteu) obj;
        if ((this.eveStCodigo == null) ? (other.eveStCodigo != null) : !this.eveStCodigo.equals(other.eveStCodigo)) {
            return false;
        }
        if ((this.medStCodigo == null) ? (other.medStCodigo != null) : !this.medStCodigo.equals(other.medStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 59 * hash + (this.eveStCodigo != null ? this.eveStCodigo.hashCode() : 0);
        hash = 59 * hash + (this.medStCodigo != null ? this.medStCodigo.hashCode() : 0);
        return hash;
    }



}
